package Alphabetic;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Alphabetic {


		 public static void main(String [] args){

		     Scanner sc = new Scanner(System.in);

		     int n = sc.nextInt();//行

		     int m = sc.nextInt();//列

		     Map<Integer, Character> map = new HashMap<Integer, Character>();

		     for(int i=1;i<=26;i++){

		     map.put(i,(char)(64+i));

		     }

		     for(int j = 1;j<=n;j++){

		     StringBuffer sb = new StringBuffer();

		     for(int i=j;i>=1;i--){

		     sb.append(map.get(i));

		     }

		     for(int i=2;i<=m+1-j;i++){

		     sb.append(map.get(i));

		     }

		     System.out.println(sb.toString().substring(0, m));

      }
     }
	
	}


